﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ext.Net;
using EntGuayasSLA.BL;

namespace EGuayas.Web.Auditoria.Promo.Cumplimiento.tabs
{
    public partial class pgPoliza : pgBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                CloseTabs(TabPanel1, 1);
            }
            catch (Exception ex)
            {
                RegistrarLog(ex);
            }
           
        }
       
        /// <summary>
        /// Inicializar constante de Borrardor
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void OnLoadDocPolAdded(object sender, ComponentAddedEventArgs e)
        {
            try
            {
            Ext.Net.Panel panel = (Ext.Net.Panel)e.Control;
            SetCustomConfigWucAllAud(panel, Constantes.APoliza, Valores.Modulo_Archivo_Aud_Cump, SessionPage.PageGestionPromoAudCump, Request["acu_id"], Request["exp_id"], Request["exa_id"]);
            }
            catch (Exception ex)
            {
                RegistrarLog(ex);
            }
        }

        protected void OnInformeAdded(object sender, ComponentAddedEventArgs e)
        {
            try
            {
                Ext.Net.Panel panel = (Ext.Net.Panel)e.Control;
                SetCustomConfigWucAllAud(panel, Constantes.APoliza, Valores.Modulo_Archivo_Informes_Aud_Cump, SessionPage.PageGestionPromoAudCump, Request["acu_id"], Request["exp_id"], Request["exa_id"]);
            }
            catch (Exception ex)
            {
                RegistrarLog(ex);
            }
        }

    }
}